package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.AddForm;
import com.ruoyi.system.domain.Users;
import com.ruoyi.system.mapper.FocusMapper;
import com.ruoyi.system.service.FocusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class FocusServiceImpl implements FocusService {

    @Autowired
    FocusMapper focusMapper;

    @Override
    public List<Users> queryAllUser() {
        return focusMapper.queryAllUser();
    }

    @Override
    public List<Users> getprivateFacilityOpt() {
        return focusMapper.getprivateFacilityOpt();
    }

    @Transactional
    @Override
    public int addRoomInfo(AddForm addForm) {
        return focusMapper.addRoomInfo(addForm);
    }

    @Transactional
    @Override
    public int addHouseInfo(AddForm addForm) {
        return focusMapper.addHouseInfo(addForm);
    }
}
